﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace Xbb.Common.Helpers
{
    public static class XssHelper
    {
        public static readonly Regex Xss = new Regex(@"(\%3C)|<|(\%3E)|>", 
            RegexOptions.IgnoreCase | RegexOptions.Compiled);

        public static bool IsXss(string input)
        {
            return input != null && Xss.IsMatch(input);
        }

    }
}
